package com.pioneer.cloudstorage.pojo.vo;

import lombok.Data;

@Data
public class ResultUpload {
    private Integer code; //编码：1成功，2为秒传失败
    private String msg; //错误信息
    private Object data; //数据

    public static ResultUpload success() {
        ResultUpload result = new ResultUpload();
        result.code = 1;
        result.msg = "success";
        return result;
    }

    public static ResultUpload error(String msg) {
        ResultUpload result = new ResultUpload();
        result.msg = msg;
        result.code =2;
        return result;
    }

}
